package com.bike.enumItem;


public enum PayWayEnum {
	ALIPAY(1,"支付宝支付"),
	WECHAT(2,"微信支付");
	
	int code;
	String msg;
	
	PayWayEnum(int code,String msg){
		this.code=code;
		this.msg=msg;
	}

	public static String getWay(int code) {
		for(PayWayEnum pwe:PayWayEnum.values()){
			if(pwe.code==code){
				return pwe.msg;
			}
		}
		return null;
	}

	public String getMsg() {
		return msg;
	}
	 
}
